<?php
namespace x\my;
use x\my\Curl;
/**阿里云api*/
class AliyunApi
{	

	/**
	 * 获取银行卡信息
	 * @param  [type] $bank_no [description]
	 * @return [type]          [description]
	 */
    public static function getBank($bank_no=''){
    	$veryfy_url = "http://ibank.market.alicloudapi.com/getbank";
    	$appcode = c('api.aliyun_bank_appcode');

		$headers = array();
		array_push($headers, "Authorization:APPCODE " . $appcode);
		$url = $veryfy_url . "?cardID={$bank_no}";

		$result = Curl::get($url,'',$headers);
		if(!$result) return $this->setError('远程请求失败');

		return $result;
    }
}
